package com.swpu.seckill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.swpu.seckill.pojo.Order;
import com.swpu.seckill.vo.OrderDetailVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Oxygen
 * @since 2022-03-17
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 生成订单信息
     * @param order
     */
    void insertOrder(Order order);

    Order selectDetail(@Param("orderId") Long orderId);

}
